package itheima.d10;

public class Test {
    public static void main(String[] args) {
        testString();
        testStringBuffer();
    }

    private static void testStringBuffer() {
        String rs = "";

        for (int i = 0; i < 100000; i++) {
           rs = rs + "kunkun";
        }
        System.out.println(rs);

    }

    private static void testString() {
        String rs = "";
        for (int i = 0; i < 100000; i++) {
            rs += "kunkun";
        }
        System.out.println( rs);
    }
}
